package com.badlogic.androidgames.game;

import com.badlogic.androidgames.framework.Game;
import com.badlogic.androidgames.framework.Graphics;
import com.badlogic.androidgames.framework.Graphics.PixmapFormat;
import com.badlogic.androidgames.framework.Pixmap;
import com.badlogic.androidgames.framework.Screen;

public class Assets extends Screen {

	static public Pixmap bgOpening;
	static public Pixmap bgGameOver;
	static public Pixmap bgCongrats;
	
	static public Pixmap PlayerWalkE;
	static public Pixmap PlayerWalkD;

	static public Pixmap PlayerJumpE;
	static public Pixmap PlayerJumpD;
	
	static public Pixmap PlayerFall;	
	static public Pixmap PlayerFire;	
	static public Pixmap PlayerDie;
	static public Pixmap PlayerClimb;
	
	static public Pixmap CaveiraE;
	static public Pixmap CaveiraD;
	
	static public Pixmap Spider;
	static public Pixmap Snake;
	
	static public Pixmap Wall;
	static public  Pixmap Door;
	static public  Pixmap WallQuadriculada;
	
	static public Pixmap LeftArrow;
	static public Pixmap RightArrow;
	static public Pixmap Jump;
	
	public Assets(Game game) {
		super(game);
		Graphics g = game.getGraphics();
		
		bgOpening = g.newPixmap("bgOpening.png",PixmapFormat.RGB565);
		PlayerWalkE = g.newPixmap("Personagem_Andando_Esquerda.png",PixmapFormat.RGB565);
		PlayerWalkD = g.newPixmap("Personagem_Andando_Direita.png",PixmapFormat.RGB565);
		
		PlayerJumpE = g.newPixmap("Personagem_Pulando_Esquerda.png",PixmapFormat.RGB565);
		PlayerJumpD = g.newPixmap("Personagem_Pulando_Direita.png",PixmapFormat.RGB565);
		
		PlayerFall = g.newPixmap("Personagem_Caindo.png",PixmapFormat.RGB565);
		PlayerFire = g.newPixmap("Personagem_Queimando.png",PixmapFormat.RGB565);
		PlayerDie = g.newPixmap("Personagem_Morrendo.png",PixmapFormat.RGB565);
		PlayerClimb = g.newPixmap("Personagem_Subindo.png",PixmapFormat.RGB565);
		
		CaveiraE = g.newPixmap("Sprite_caveira_esquerda.png",PixmapFormat.RGB565);
		CaveiraD = g.newPixmap("Sprite_caveira_direita.png",PixmapFormat.RGB565);
		
		Spider = g.newPixmap("sprite_aranha.png",PixmapFormat.RGB565);
		Snake = g.newPixmap("Sprite_Cobra.png",PixmapFormat.RGB565);
		
		Wall = g.newPixmap("wall.png",PixmapFormat.RGB565);
		
		Door = g.newPixmap("sprite_porta.png", PixmapFormat.RGB565);
		WallQuadriculada = g.newPixmap("quadriculado.png", PixmapFormat.RGB565);
		
		LeftArrow = g.newPixmap("LeftArrow.png", PixmapFormat.RGB565);
		RightArrow = g.newPixmap("RightArrow.png", PixmapFormat.RGB565);
		Jump = g.newPixmap("Jump.png", PixmapFormat.RGB565);
		
	}

	@Override
	public void update(float deltaTime) { 

		
		game.setScreen(new Level01(game));

	}

	@Override
	public void present(float deltaTime) {
		// TODO Auto-generated method stub

	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub

	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

}
